<style>
    body{
        background-color: #f9f9f9;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
        width: 200px;
    }
    td>label{
        margin-right: 10px;
        float: right;
    }
</style>
<script>
    var apply_data = {{ applyData }};
    var modify = {{ modify }};
    var id_data = {{ id }};
</script>
<form id="reference_back_apply_form" class="xh-form"  method="post">
    <div class="xh-area-form">
        <table style="width: 100%">
                <tr>
                    <td ><label>学校：</label></td><td ><select id="school" style="width: 160px" class="form-control" name="school"><option value="" selected>请选择</option></select></td>
                    <td ><label>科目：</label></td><td ><select id="subject" style="width: 160px" class="form-control"  name="subject"><option value="" selected>请选择</option></select></td>
                    <td ><label>教师：</label></td><td ><select id="teacher" style="width: 160px" class="form-control" name="teacher"><option value="" selected>请选择</option></select></td>
                </tr>
                <tr>
                    <td ><label>年级：</label></td><td ><select id="class" style="width: 160px" class="form-control" name="class"><option value="" selected>请选择</option></select></td>
                    <td ><label>应用：</label></td><td ><select id="application" style="width: 160px" class="form-control" name="application"><option value="" selected>请选择</option></select></td>
                </tr>
            {% if modify == 2 %}<!-- 修改 -->
                <tr>
                    <td ><label>教辅书名：</label></td><td>
                        <input id="bookName" class="form-control" name="bookName" type="text" value="{{applyDataArr['sBookName']}}" disabled="disabled">
                    </td>
                    <td ><label>教辅ID：</label></td><td>
                        <input id="referenceId" class="form-control" name="referenceId" type="text" value="{{applyDataArr['iBookId']}}" disabled="disabled">
                    </td>
                </tr>
                <tr>
                    <td><label>备注：</label></td>
                    <td colspan="5"><textarea style="height:80px" id="remark" name="remark" type="text" >{{applyDataArr['sRemark']}}</textarea></td>
                </tr>
            {% else %}<!-- 新建 -->
                <tr>
                    <td ><label>教辅书名：</label></td><td>
                        <input id="bookName" class="form-control" name="bookName" type="text" value="{{ bookName }}" disabled="disabled">
                    </td>
                    <td ><label>教辅ID：</label></td><td>
                        <input id="referenceId" class="form-control" name="referenceId" type="text" value="{{ bookId }}" disabled="disabled">
                    </td>
                </tr>
                <tr>
                    <td><label>备注：</label></td>
                    <td colspan="5"><textarea style="height:80px" id="remark" class="form-control" name="remark" type="text"></textarea></td>
                </tr>
            {% endif %}
        </table>
    </div>
</form>